package com.ks.user.service;

import com.ks.core.base.OperationContext;
import com.ks.core.dto.SearchCriteriaBase;
import com.ks.user.controller.dto.PowerResurceRequest;
import com.ks.user.entity.PowerResurce;
import com.baomidou.mybatisplus.service.IService;

import java.util.Map;

/**
 * <p>
 * 权限资源表 服务类
 * </p>
 *
 * @author kingdee123
 * @since 2020-11-30
 */
public interface IPowerResurceService extends IService<PowerResurce> {

    int addPowerResurce(OperationContext context, PowerResurce powerResurce);

    Map<String, Object> selectAppMenu(OperationContext context, int id);

    int deleteAppMenu(OperationContext context, PowerResurce powerResurce);


    Map<String, Object> getRoleList(OperationContext context, SearchCriteriaBase searchCriteriaBase);

    /**
     * 应用修改菜单
     *
     * @param context
     * @param powerResurce
     * @return
     */
    int updateRower(OperationContext context, PowerResurce powerResurce);

    Map<String, Object> addPowerRes(OperationContext context, PowerResurceRequest powerResurceRequest);

    Map<String, Object> updatePowerRes(OperationContext context, PowerResurceRequest powerResurceRequest);

    Map<String, Object> selectPowerRes(OperationContext context, SearchCriteriaBase searchCriteriaBase);

    int deletePowerRes(OperationContext context, PowerResurceRequest powerResurceRequest);
}
